package com.nlelpct.manage.feign;

import com.nlelpct.manage.model.vo.LiveSMSVo;
import com.nlelpct.manage.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "SMSService", url = "${common-service.log-sms}")
public interface SMSFeignService {

    // 短信验证码校验
    @RequestMapping(value = "/aliyunMsg/validate/phone", method = RequestMethod.POST)
    Result validate(@RequestParam(value = "mobile") String mobile, @RequestParam(value = "smsCode") String smsCode);

    // 发送短信验证码
    @RequestMapping(value = "/aliyunMsg/send/auto", method = RequestMethod.POST)
    Result sendSMS(@RequestParam(value = "mobile") String mobile);

    // 发送短信，动态模板
    @RequestMapping(value = "/aliyunMsg/sendLiveMessage", method = RequestMethod.POST)
    Result sendSMS(@RequestBody LiveSMSVo liveSMSVo);




}
